package com.tust.app.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.tust.app.dao.TNewsMapper;
import com.tust.app.domain.TNews;
import com.tust.app.service.TNewsService;
@Service
public class TNewsServiceImpl implements TNewsService{

    @Resource
    private TNewsMapper tNewsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tNewsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TNews record) {
        return tNewsMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(TNews record) {
        return tNewsMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(TNews record) {
        return tNewsMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(TNews record) {
        return tNewsMapper.insertSelective(record);
    }

    @Override
    public TNews selectByPrimaryKey(Integer id) {
        return tNewsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TNews record) {
        return tNewsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TNews record) {
        return tNewsMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<TNews> list) {
        return tNewsMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<TNews> list) {
        return tNewsMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<TNews> list) {
        return tNewsMapper.batchInsert(list);
    }

}
